//
//  CompanyCreatInfoCell.m
//  Btpin
//
//  Created by Vic on 2019/4/1.
//  Copyright © 2019 Vic. All rights reserved.
//

#import "CompanyCreatInfoCell.h"

@interface CompanyCreatInfoCell ()
{
    UILabel *leftLbl;
    UILabel *rightLbl;
}
@end

@implementation CompanyCreatInfoCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self initUI];
    }
    return self;
}
- (void)initUI {
    leftLbl = [UIToolsControl initLabelWithFrame:CGRectMake(LeftSpace, 0, 150, 45*Scale) text:nil textColor:THEMECOLOR_OF_TEXT_333333 font:Font_15];
    [self.contentView addSubview:leftLbl];
    
    rightLbl = [UIToolsControl initLabelWithFrame:CGRectMake(120*Scale, 0, WIDTH-165*Scale, 45*Scale) text:nil textColor:THEMECOLOR_OF_TEXT_9a9a9a font:Font_13];
    rightLbl.textAlignment = NSTextAlignmentRight;
    [self.contentView addSubview:rightLbl];
}
- (void)reloadDataModel:(PublicCategoryElementModel *)model {
    leftLbl.text = model.name;
    if (model.detail && model.detail.length) {
        rightLbl.text = model.detail;
    }
}

- (void)awakeFromNib {
    [super awakeFromNib];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
